Integrand size = 25, antiderivative size = 79 \[ \int \sqrt {a+(c \cos (e+f x)+b \sin (e+f x))^2} \, dx=\frac {E\left (e+f x+\tan ^{-1}(b,c)|-\frac {b^2+c^2}{a}\right ) \sqrt {a+(c \cos (e+f x)+b \sin (e+f x))^2}}{f \sqrt {1+\frac {(c \cos (e+f x)+b \sin (e+f x))^2}{a}}} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {3320, 3319, 3256} \[ \int \sqrt {a+(c \cos (e+f x)+b \sin (e+f x))^2} \, dx=\frac {\sqrt {a+(b \sin (e+f x)+c \cos (e+f x))^2} E\left (e+f x+\tan ^{-1}(b,c)|-\frac {b^2+c^2}{a}\right )}{f \sqrt {\frac {(b \sin (e+f x)+c \cos (e+f x))^2}{a}+1}} \]
[In]
[Out]
Rule 3256
Rule 3319
Rule 3320
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {a+(c \cos (e+f x)+b \sin (e+f x))^2} \int \sqrt {1+\frac {(c \cos (e+f x)+b \sin (e+f x))^2}{a}} \, dx}{\sqrt {1+\frac {(c \cos (e+f x)+b \sin (e+f x))^2}{a}}} \\ & = \frac {\sqrt {a+(c \cos (e+f x)+b \sin (e+f x))^2} \int \sqrt {1+\frac {\left (b^2+c^2\right ) \sin ^2\left (e+f x+\tan ^{-1}(b,c)\right )}{a}} \, dx}{\sqrt {1+\frac {(c \cos (e+f x)+b \sin (e+f x))^2}{a}}} \\ & = \frac {E\left (e+f x+\tan ^{-1}(b,c)|-\frac {b^2+c^2}{a}\right ) \sqrt {a+(c \cos (e+f x)+b \sin (e+f x))^2}}{f \sqrt {1+\frac {(c \cos (e+f x)+b \sin (e+f x))^2}{a}}} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(325\) vs. \(2(79)=158\).
Time = 2.14 (sec) , antiderivative size = 325, normalized size of antiderivative = 4.11 \[ \int \sqrt {a+(c \cos (e+f x)+b \sin (e+f x))^2} \, dx=-\frac {E\left (\arcsin \left (\frac {\sqrt {\frac {\sqrt {\left (b^2+c^2\right )^2}+\left (b^2-c^2\right ) \cos (2 (e+f x))-2 b c \sin (2 (e+f x))}{\sqrt {\left (b^2+c^2\right )^2}}}}{\sqrt {2}}\right )|\frac {2 \sqrt {\left (b^2+c^2\right )^2}}{2 a+b^2+c^2+\sqrt {\left (b^2+c^2\right )^2}}\right ) \sqrt {2 a+b^2+c^2+\left (-b^2+c^2\right ) \cos (2 (e+f x))+2 b c \sin (2 (e+f x))} \left (2 b c \cos (2 (e+f x))+\left (b^2-c^2\right ) \sin (2 (e+f x))\right )}{\sqrt {2} \sqrt {\left (b^2+c^2\right )^2} f \sqrt {\frac {2 a+b^2+c^2+\left (-b^2+c^2\right ) \cos (2 (e+f x))+2 b c \sin (2 (e+f x))}{2 a+b^2+c^2+\sqrt {\left (b^2+c^2\right )^2}}} \sqrt {\frac {\left (2 b c \cos (2 (e+f x))+\left (b^2-c^2\right ) \sin (2 (e+f x))\right )^2}{\left (b^2+c^2\right )^2}}} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 7.42 (sec) , antiderivative size = 315013, normalized size of antiderivative = 3987.51
[In]
[Out]
\[ \int \sqrt {a+(c \cos (e+f x)+b \sin (e+f x))^2} \, dx=\int { \sqrt {{\left (c \cos \left (f x + e\right ) + b \sin \left (f x + e\right )\right )}^{2} + a} \,d x } \]
[In]
[Out]
\[ \int \sqrt {a+(c \cos (e+f x)+b \sin (e+f x))^2} \, dx=\int \sqrt {a + \left (b \sin {\left (e + f x \right )} + c \cos {\left (e + f x \right )}\right )^{2}}\, dx \]
[In]
[Out]
\[ \int \sqrt {a+(c \cos (e+f x)+b \sin (e+f x))^2} \, dx=\int { \sqrt {{\left (c \cos \left (f x + e\right ) + b \sin \left (f x + e\right )\right )}^{2} + a} \,d x } \]
[In]
[Out]
\[ \int \sqrt {a+(c \cos (e+f x)+b \sin (e+f x))^2} \, dx=\int { \sqrt {{\left (c \cos \left (f x + e\right ) + b \sin \left (f x + e\right )\right )}^{2} + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \sqrt {a+(c \cos (e+f x)+b \sin (e+f x))^2} \, dx=\int \sqrt {a+{\left (c\,\cos \left (e+f\,x\right )+b\,\sin \left (e+f\,x\right )\right )}^2} \,d x \]
[In]
[Out]